#include<iostream>
#include<string.h>
#include<cmath>
#include<stdio.h>
using namespace std;
int main()
{
    int x,y,z;
    double n;
    while(cin>>n) 
    {
       for(x=0;x<=100;x++)
         for(y=0;y<=100;y++)
           for(z=0;z<=100;z++)
             if( (x+y+z)==100 && 5*x+3*y+z*(1.0/3.0)<=n) printf("x=%d,y=%d,z=%d\n",x,y,z);//cout<<'x=%d,y=%d,z=%d,&x,&y,&z'<<endl;
    }
   // system("pause")          ;
    return 0;
}
                              
     
